package StringDemo.SubString;

public class SubString {
    public static void main(String[] args) {
        String example = "Hello World";
        String result1 = example.substring(3, 5);
        String result2 = example.substring(4);
        System.out.println(result1);
        System.out.println(result2);
    }
}
